﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace Classwork06
{
    class App
    {
        private string path = @"..\..\Data\TestText.txt";
        public void readAndWrite(string path1, string path2)
        {
            String s1 = File.ReadAllText(path1);
            String s2 = File.ReadAllText(path2);
            if (!File.Exists(path))
            {
                using (_ = File.CreateText(path)) ;
            }
            File.WriteAllText(path, s1);
            File.AppendAllText(path, s2);
        }

        public void deleteText()
        {
            File.Delete(path);
        }
    }
}
